package com.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class WebController {

	@RequestMapping("/index")
	public String index() {
		return "index";
	}
	
	@RequestMapping("/staticPage")
	public String redirect() {
		//重定向，跳转到静态页面
		return "redirect:/html/final.html";
	}
	
	
	@RequestMapping("/redirect")
	public String redirectPage() {
		//重定向到finalPage
		return "redirect:/finalPage";
	}
	
	@RequestMapping("/finalPage")
	public String finalPage() {
		return "final";
	}
}
